//
//  CategoryRootModel.m
//  muscleLife
//
//  Created by xalo on 16/5/1.
//  Copyright © 2016年 HeavenAndHell. All rights reserved.
//

#import "CategoryRootModel.h"

@implementation CategoryRootModel

- (instancetype)init
{
    self = [super init];
    if (self) {
        _categoryInfo = [[CategoryInfoModel alloc] init];
    }
    return self;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{

}

-(void)setValue:(id)value forKey:(NSString *)key{
    
    if ([key isEqualToString:@"categoryInfo"]) {
        
        [self.categoryInfo setValuesForKeysWithDictionary:value];
        
    }else{
        [super setValue:value forKey:key];
    }
}
@end
